package cs.cpsc372.Uorganized;

import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class WeekAdapter extends ArrayAdapter {
	
	private Activity parentActivity;
	private int itemLayoutId;
	private List<DayAdapter> dataSource;
	//private LayoutInflater inflater;
	
	public WeekAdapter(Activity activity, List objects) {
		super(activity, R.layout.row_view , objects);
		System.out.println("Creating the Week Adapter");
		parentActivity = activity;
		//itemLayoutId = layout;
		//dataSource = data;	
		//inflater = (LayoutInflater)Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	}

	public int getCount() {
		return 0;
	}

	public Object getItem(int position) {
		return null;
	}

	public long getItemId(int position) {
		return 0;
	}
	
	@Override
	public boolean hasStableIds(){
		return true;
	}
	
	@Override
	public int getItemViewType(int pos){
		return IGNORE_ITEM_VIEW_TYPE;
	}

	@Override
	public int getViewTypeCount(){
		return 1;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		System.out.println("Getting the view");
		View rowView = convertView;
        if(rowView == null)
        {
        	System.out.println("IN THE ADAPTER");
        }
        else System.out.println("ADAPTER WAS NOT NULL");
		return rowView;
	}
}
